<script>
	export default {
		globalData: {
			imgurl: 'https://td.lszbg.com/public/uploads/h5/TanDianDaRen/Merchants', //FTP图片地址
      imgurlBwc: 'https://td.lszbg.com/public/uploads/h5/',
      shopImgUrl: 'https://td.lszbg.com/public/uploads/',
      baseUrl: 'https://td.lszbg.com/',
		},
		onLaunch: function() {
			console.log('App Launch')
      //获取客服链接
      this.$api.GetcustomerService({}).then(res => {
        uni.setStorageSync('customerServiceData', res.data.result)
      }).catch(err => {})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	body {
		font-family: Helvetica Neue, Helvetica, sans-serif;
	}
  //uniapp样式控制溢出隐藏带省略号
  @mixin ellipsis($lines: 1) {
    overflow: hidden;
    word-break: break-all; /* 允许在单词内换行 */
    text-overflow: ellipsis; /* 超出部分省略号 */
    display: -webkit-box; /* 对象作为伸缩盒子模型显示 */
    -webkit-box-orient: vertical; /* 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-line-clamp: $lines; /* 显示的行数 */
  }
  /* 使用 mixin */
  .ellipsis-one-line {
    @include ellipsis(1);
  }
  .ellipsis-two-line {
    @include ellipsis(2);
  }
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";

	image {
		vertical-align: bottom;
	}
  /* 底部安全区域 */
  .safe-area-inset-bottom {
    padding: 0 30rpx;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
  }
  /* 顶部安全区域 */
  .safe-area-inset-top {
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
  }
  /* tabs导航的count样式 */
  .u-badge{
    top: 24rpx !important;
    font-size: 38rpx !important;
    color: #FF8421 !important;
    background: none !important;
  }
	/*每个页面公共css */
</style>